package com.ruoyi.jjyh.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商品分类对象 jjyh_goodsclass
 * 
 * @author ruoyi
 * @date 2020-11-19
 */
public class JjyhGoodsclass extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String className;

    /** 分类编码 */
    @Excel(name = "分类编码")
    private String classCode;

    /** 分类级别（一级 二级三级） */
    @Excel(name = "分类级别", readConverterExp = "一=级,二=级三级")
    private String classLevel;

    /** 父级id */
    @Excel(name = "父级id")
    private String pid;

    private String classType;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setClassCode(String classCode) 
    {
        this.classCode = classCode;
    }

    public String getClassCode() 
    {
        return classCode;
    }
    public void setClassLevel(String classLevel) 
    {
        this.classLevel = classLevel;
    }

    public String getClassLevel() 
    {
        return classLevel;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("className", getClassName())
            .append("classCode", getClassCode())
            .append("classLevel", getClassLevel())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("pid", getPid())
            .toString();
    }

    public String getClassType() {
        return classType;
    }

    public void setClassType(String classType) {
        this.classType = classType;
    }
}
